package com.ruoyi.aiexperiments.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.aiexperiments.mapper.TestEvaluationMapper;
import com.ruoyi.aiexperiments.domain.TestEvaluation;
import com.ruoyi.aiexperiments.service.ITestEvaluationService;

/**
 * 测试数据评估Service业务层处理
 * 
 * @author czj
 * @date 2025-01-06
 */
@Service
public class TestEvaluationServiceImpl implements ITestEvaluationService 
{
    @Autowired
    private TestEvaluationMapper testEvaluationMapper;

    /**
     * 查询测试数据评估
     * 
     * @param evaluationId 测试数据评估主键
     * @return 测试数据评估
     */
    @Override
    public TestEvaluation selectTestEvaluationByEvaluationId(Long evaluationId)
    {
        return testEvaluationMapper.selectTestEvaluationByEvaluationId(evaluationId);
    }

    /**
     * 查询测试数据评估列表
     * 
     * @param testEvaluation 测试数据评估
     * @return 测试数据评估
     */
    @Override
    public List<TestEvaluation> selectTestEvaluationList(TestEvaluation testEvaluation)
    {
        return testEvaluationMapper.selectTestEvaluationList(testEvaluation);
    }

    /**
     * 新增测试数据评估
     * 
     * @param testEvaluation 测试数据评估
     * @return 结果
     */
    @Override
    public int insertTestEvaluation(TestEvaluation testEvaluation)
    {
        return testEvaluationMapper.insertTestEvaluation(testEvaluation);
    }

    /**
     * 修改测试数据评估
     * 
     * @param testEvaluation 测试数据评估
     * @return 结果
     */
    @Override
    public int updateTestEvaluation(TestEvaluation testEvaluation)
    {
        return testEvaluationMapper.updateTestEvaluation(testEvaluation);
    }

    /**
     * 批量删除测试数据评估
     * 
     * @param evaluationIds 需要删除的测试数据评估主键
     * @return 结果
     */
    @Override
    public int deleteTestEvaluationByEvaluationIds(Long[] evaluationIds)
    {
        return testEvaluationMapper.deleteTestEvaluationByEvaluationIds(evaluationIds);
    }

    /**
     * 删除测试数据评估信息
     * 
     * @param evaluationId 测试数据评估主键
     * @return 结果
     */
    @Override
    public int deleteTestEvaluationByEvaluationId(Long evaluationId)
    {
        return testEvaluationMapper.deleteTestEvaluationByEvaluationId(evaluationId);
    }
}
